package day10;

public class Teacher {
    private int age;
    private String school, name;

    public Teacher(int age, String school, String name) {
        this.age = age;
        this.school = school;
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void selfIntro() {
        System.out.println("我叫" + name + "，在" + school + "教学，年龄" + age);
    }

    public void startClass() {
        System.out.println("开始上课了！");
    }
}
